home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power Programmierung
/
Power-Programmierung (Tewi)(1994).iso
/
assemblr
/
library
/
sampler0
/
draft.asm
< prev
next >
Wrap
Assembly Source File
|
1987-12-28
|
513b
|
32 lines
code segment
assume cs:code, ds:code
org 100h
start:
mov ah, 40h
mov bx, 4
mov cx, 2
mov dx, offset draft_cmd
int 21h
jc error
mov dx, offset ok_msg
xor al, al
jmp exit
error:
mov dx, offset notok_msg
mov al, 1
exit:
push ax
mov ah, 09h
int 21h
pop ax
mov ax, 4C01h
int 21h
draft_cmd db 1Bh, 'H'
ok_msg db 0Dh, 0Ah, "Printer set for Draft Quality", 0Dh, 0Ah, '$'
notok_msg db 0Dh, 0Ah, "NLQ: Can't access printer", 0Dh, 0Ah, '$'
code ends
end start